package com.cy.system.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cy.system.entity.Menu;
import com.cy.system.service.MenuService;

@Controller
public class MenuController {
	@Resource
	MenuService menuService;
	
	@RequestMapping("/allMenu")
	@ResponseBody
	public List<Menu> getAllMenu(){
		return menuService.getAllMenu();
	}
}
